﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using Telerik.Web.UI;
using Telerik.Charting;
using KPIS.GERP.GBMS.IBLL;
using KPIS.GERP.GBMS.BLL;
using KPIS.GERP.GBMS.MODEL;

namespace KPIS.GERP.GBMS.APP_UI.UserControls
{
    public partial class BI_BGM_Request : System.Web.UI.UserControl
    {
        private IProjectControl projectBLL;

        protected void Page_Load(object sender, EventArgs e)
        {
            projectBLL = Project_Factory.GetProjectControlFactory("rq");
        }

        public void LoadSubActChart(string strBgmYear, string strBgmSourceSeq, string strJobsiteSeq)
        {
            RadChart1.DataSource = projectBLL.GetDataStrategyControl(Convert.ToInt32(strBgmYear), strJobsiteSeq, false, "A");
            RadChart1.DataBind();
        }

        protected void RadChart1_ItemDataBound(object sender, ChartItemDataBoundEventArgs e)
        {
            e.SeriesItem.Name = ((DataRowView)e.DataItem)["name"].ToString();
        }
    }
}